import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/page/Index'
import Main from "../page/Main"

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/', redirect: '/index/main'},
    {path: '/index', component: Index,
      children: [
        {path: 'main', component: Main},
      ]
    }
  ]
})
